<template>
<view class="edit-userInfo">
  <view class="avatar-box">
    <text>头像</text>
    <image src="userinfo.avatarUrl"/>
    <uni-icons type="arrowright" size="15"></uni-icons>
  </view>

</view>
</template>

<script>
// 按需导入 mapState 辅助函数
import {
    mapState,
    mapMutations
  } from 'vuex'
export default {
    computed: {
      // 将 m_user 模块中的 userinfo 映射到当前页面中使用
      ...mapState('m_user', ['userinfo']),
    },
  data() {
    return {
        userId: uni.getStorageSync("userId"),
    };
  },
  onLoad() {
  },
  methods: {
    ...mapMutations('m_user', ['updateUserInfo', 'updateToken', 'updateAddress']),
  },
};
</script>

<style lang="scss">
.edit-userInfo {
  background-color: #fff;
  margin-top: 15px;

  .avatar-box {
    display: flex;
  }
}
</style>